cmake_minimum_required(VERSION 3.10)
set(CMAKE_TOOLCHAIN_FILE "D:/Apps/vcpkg/scripts/buildsystems/vcpkg.cmake")
project(HelloWorld LANGUAGES CXX VERSION 1.0.0)

find_package(GLEW REQUIRED)
find_package(glm CONFIG REQUIRED)
find_package(glfw3 CONFIG REQUIRED)


add_executable(main src/main.cpp)
add_executable(cube src/cube.cpp)
if(MSVC)
    target_compile_definitions(main PRIVATE "/utf-8")
    target_compile_definitions(cube PRIVATE "/utf-8")
endif()
target_link_libraries(main PRIVATE GLEW::GLEW glm::glm glfw)
target_link_libraries(cube PRIVATE GLEW::GLEW glm::glm glfw)
